//
//  ViewController.m
//  NetWorkRequestDemo
//
//  Created by 卢浩 on 16/4/16.
//  Copyright © 2016年 卢浩. All rights reserved.
//

#import "ViewController.h"
#import "NetWorkRequestManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSURL *url = [NSURL URLWithString:@"http://api2.pianke.me/read/columns"];
    [NetWorkRequestManager requestWithUrl:url Type:GET Params:nil ResultBlock:^(NSData *data, NSURLResponse *response, NSError *error) {
        NSLog(@"%@,%@,%@",data,response,error);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
